home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 14757 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  948 b 

  1. Path: newsfeed.direct.ca!news
  2. From: dana fujikawa <dfujikaw@direct.ca>
  3. Newsgroups: comp.lang.c++
  4. Subject: help with keyboard scanning
  5. Date: Mon, 01 Apr 1996 02:37:51 -0800
  6. Organization: none
  7. Message-ID: <315FB1FF.65F0@direct.ca>
  8. NNTP-Posting-Host: van-as-01b04.direct.ca
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0 (Win95; I)
  13.  
  14. can anybody help me with this C++ problem? i've made a simple shootem game in c++, using the keyboard as input..... however, i'm using the getch() function 
  15. to input the numbers from the keypad... the problem is that when i hold down a key to move my ship across the screen, my ship moves one unit in that 
  16. direction, stops for half a second and then moves on (like holding down a key in a text editor).... how can I avoid this (do i have to use scancodes and do i 
  17. need some special c++ library for that?)... thanx Dana Fujikawa     dfujikaw@direct.ca
  18.